<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionCompania.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditTblcompaniaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
           
            <h:form>
                <p:panel id="panel" header="#{bundle.EditTblcompaniaTitle}">
                <p:messages id="msgs"/> 
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_codCompania}" for="codCompania" />
                    <h:outputLabel id="codCompania" value="#{tblcompaniaController.selected.codCompania}" title="#{bundle.EditTblcompaniaTitle_codCompania}"/>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_nomNomina}" for="nomNomina" />
                    <p:inputText id="nomNomina" value="#{tblcompaniaController.selected.nomNomina}" title="#{bundle.EditTblcompaniaTitle_nomNomina}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_nomNomina}"/>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_nit}" for="nit" />
                    <p:inputText id="nit" value="#{tblcompaniaController.selected.nit}" title="#{bundle.EditTblcompaniaTitle_nit}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_nit}"/>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_objSocial}" for="objSocial" />
                    <p:inputText id="objSocial" value="#{tblcompaniaController.selected.objSocial}" title="#{bundle.EditTblcompaniaTitle_objSocial}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_objSocial}"/>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_direccion}" for="direccion" />
                    <p:inputText id="direccion" value="#{tblcompaniaController.selected.direccion}" title="#{bundle.EditTblcompaniaTitle_direccion}" />
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_telefono1}" for="telefono1" />
                    <p:inputText id="telefono1" value="#{tblcompaniaController.selected.telefono1}" title="#{bundle.EditTblcompaniaTitle_telefono1}" />
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_telefono2}" for="telefono2" />
                    <p:inputText id="telefono2" value="#{tblcompaniaController.selected.telefono2}" title="#{bundle.EditTblcompaniaTitle_telefono2}" />
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_fax}" for="fax" />
                    <p:inputText id="fax" value="#{tblcompaniaController.selected.fax}" title="#{bundle.EditTblcompaniaTitle_fax}" />
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_aaereo}" for="aaereo" />
                    <p:inputText id="aaereo" value="#{tblcompaniaController.selected.aaereo}" title="#{bundle.EditTblcompaniaTitle_aaereo}" />
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_email}" for="email" />
                    <p:inputText id="email" value="#{tblcompaniaController.selected.email}" title="#{bundle.EditTblcompaniaTitle_email}" />
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_numCuenta}" for="numCuenta" />
                    <p:inputText id="numCuenta" value="#{tblcompaniaController.selected.numCuenta}" title="#{bundle.EditTblcompaniaTitle_numCuenta}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_numCuenta}"/>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_salMinimo}" for="salMinimo" />
                    <p:inputText id="salMinimo" value="#{tblcompaniaController.selected.salMinimo}" title="#{bundle.EditTblcompaniaTitle_salMinimo}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_salMinimo}"/>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_subTransporte}" for="subTransporte" />
                    <p:inputText id="subTransporte" value="#{tblcompaniaController.selected.subTransporte}" title="#{bundle.EditTblcompaniaTitle_subTransporte}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_subTransporte}"/>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_diasClave}" for="diasClave" />
                    <p:inputText id="diasClave" value="#{tblcompaniaController.selected.diasClave}" title="#{bundle.EditTblcompaniaTitle_diasClave}" />
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_periodoPago}" for="periodoPago" />
                    <p:selectOneMenu id="periodoPago" value="#{tblcompaniaController.selected.periodoPago}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_periodoPago}">
                        <f:selectItems value="#{tblperiodopagoController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_pais}" for="pais" />
                    <p:selectOneMenu id="pais" value="#{tblcompaniaController.selected.pais}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_pais}">
                        <f:selectItems value="#{tblpaisesController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_impuesto}" for="impuesto" />
                    <p:selectOneMenu id="impuesto" value="#{tblcompaniaController.selected.impuesto}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_impuesto}">
                        <f:selectItems value="#{tblimpuestosController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_departamento}" for="departamento" />
                    <p:selectOneMenu id="departamento" value="#{tblcompaniaController.selected.departamento}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_departamento}">
                        <f:selectItems value="#{tbldepartamentosController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_ciudad}" for="ciudad" />
                    <p:selectOneMenu id="ciudad" value="#{tblcompaniaController.selected.ciudad}" required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_ciudad}">
                        <f:selectItems value="#{tblciudadesController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditTblcompaniaLabel_banco}" for="banco" />
                    <p:selectOneMenu id="banco" value="#{tblcompaniaController.selected.banco}"  required="true" requiredMessage="#{bundle.EditTblcompaniaRequiredMessage_banco}">
                        <f:selectItems value="#{tblbancosController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                </h:panelGrid>
                <p:commandButton action="#{tblcompaniaController.update}" update="panel" value="#{bundle.EditTblcompaniaSaveLink}"/>
              
                <p:commandButton action="#{tblcompaniaController.prepareList}" value="#{bundle.EditTblcompaniaShowAllLink}" immediate="true"/>
                
                </p:panel>  
            </h:form>
        </ui:define>
    </ui:composition>

</html>
